package Conf;

use FindBin '$Bin';


our %CONFIG = (
    # logger configure
    log_path => "$Bin/../log",
    log_level => 0,
    lock_file => "$Bin/../data/input/lock/lock_file",
    db_data_file_path => "$Bin/../data/input/db/",

    # var configure
    var_path => "$Bin/../var",

    # db configure
    stock_db_name => "d_stock",
    stock_db_host => "localhost",
    stock_db_user => "root",
    stock_db_pwd => "123456",

    sleep_interval_wget => 300,
    sleep_interval_run_daily_task => 3,

    download_data_process_cnt => 50,
    download_data_day_cnt => 10,

    retry_times_wget => 3,

    cmd_success_code => 0,
    cmd_timeout_code => 1,
    cmd_fork_fail_code => 2, 

    file_ok_code => 0,
    file_not_existed_code => -1,
    file_zero_size_code => -2,
    fiel_not_deleteed_code => -3,

    HASH1 => {
	    HASH2 => {
		    HASH3 => 3,
		    HASH4 => "x40",
	    },
    },

    status_num => {
	    GET_NEW_DATA_ING => 1,
	    GET_NEW_DATA_SUCC => 2,
	    GET_NEW_DATA_FAIL => 3,

	    GET_DIFF_DATE_ING => 4,
	    GET_DIFF_DATE_SUCC => 5,
	    GET_DIFF_DATE_FAIL => 6,

	    FIX_MISSING_DATA_ING => 7,
	    FIX_MISSING_DATA_SUCC => 8,
	    FIX_MISSING_DATA_FAIL => 9,

	    GET_RISE_PERCENTAGE_ING => 10,
	    GET_RISE_PERCENTAGE_SUCC => 11,
	    GET_RISE_PERCENTAGE_FAIL => 12,

	    SIMULATE_ING => 13,
	    SIMULATE_SUCC => 14,
	    SIMULATE_FAIL => 15,

	    SEND_MSG_ING => 16,
	    SEND_MSG_SUCC => 17,
	    SEND_MSG_FAIL => 18,
    },

);

1;

